<!DOCTYPE html>
<html>
<head lang="en">
    <base href="${request.contextPath}/"/>
    <meta charset="UTF-8">
    <#import "/spring.ftl" as spring>
    <title><@spring.message code="login.tip"/></title>
    <link rel="shortcut icon" href="${request.contextPath}/favicon.ico" type="image/x-icon" />
    <link href="${request.contextPath}/zhny/css/reset.css" rel="stylesheet" type="text/css">
    <link href="${request.contextPath}/zhny/css/jianCeShuJu_xx.css" rel="stylesheet" type="text/css">

    <script type="text/javascript" src="${request.contextPath}/zhny/js/echarts.js"></script>

    <script src="${request.contextPath}/zhny/js/jquery.min.js"></script>
    <!--字体缩放js-->
    <script src="${request.contextPath}/zhny/js/js-style.js"></script>
    <!--end字体缩放js-->
    <!--动态特效-->
    <link href="${request.contextPath}/zhny/css/style.css" rel="stylesheet" type="text/css" />

</head>
<body >


<!--top-->

<header class="header">
    <div class="header_box clearfix">
        <div class="header_box_l">
            <p>hello,<@spring.message code="index.wel"/></p>
        </div>
        <div class="header_box_c">
            <div class="masked"><@spring.message code="login.tip"/></div>
        </div>
        <div class="header_box_r ">
            <a href="${request.contextPath}/sy/wlwjd/wlwjdnew.html?dkid=${land.massifId}&locale=zh_CN" target="_self">中文版</a>
            <a href="${request.contextPath}/sy/wlwjd/wlwjdnew.html?dkid=${land.massifId}&locale=en_US" target="_self">English</a>
            <a href="${request.contextPath}/sy/logout" target="_self"><@spring.message code="index.out"/></a>
        </div>
    </div>
</header>
<!--end top-->


<div class="comment">
    <div class="comment_box">
        <h4>${land.massifName}</h4>
        <div class="dt_map">
            <#list listsp as dws>
            <div class="sheXiangTou" style="top:${dws.top!'50%'};left: ${dws.left!'50%'};" onclick="show(${dws.spnum!'40'})" title="视频监控" >
                <span class="span-1 s"></span>
            </div>
            </#list>
<!--            <div class="sheXiangTou" style="left: 60%;top:60%;" title="传感器" >-->
<!--                <span class="span-2 s"></span>-->
<!--            </div>-->
            <div class="wenda_x">
                <img src="${imgurl}">
            </div>
        </div>
    </div>
</div>

<div class="container">
    <section>
     <!--   <#if isAdmn == "TRUE">
        <button  onclick="window.location.href='${request.contextPath}/sy/index/indexnew.html'"  class="btn btn-green btn-border-o ">首页</button>
        </#if>
    <button onclick="window.location.href='${request.contextPath}/sy/nydsj/nydsjnew.html'" class="btn btn-blue btn-border-o active2">数据检测</button>
    <button onclick="window.location.href='${request.contextPath}/sy/zlzs/zlzsnew.html'" class="btn btn-purple btn-border-o">质量追溯</button>
    <button onclick="window.location.href='${request.contextPath}/sy/zjwd/zjwdnew.html'" class="btn btn-red  btn-border-o">专家指导</button>
    <button onclick="window.location.href='${request.contextPath}/sy/nybk/nybknew.html'" class="btn btn-orange btn-border-o">农业百科</button>
-->
        <#if isAdmn == "TRUE">
        <button  onclick="shouye()"  class="btn btn-green btn-border-o "><@spring.message code="index.sy"/></button>
    </#if>
    <button onclick="nydsj()" class="btn btn-blue btn-border-o active2"><@spring.message code="index.sjjc"/></button>
    <button onclick="zlzs()" class="btn btn-purple btn-border-o "><@spring.message code="index.zlzs"/></button>
    <button onclick="zjzd()" class="btn btn-red  btn-border-o"><@spring.message code="index.zjzd"/></button>
    <button onclick="nybk()" class="btn btn-orange btn-border-o "><@spring.message code="index.nybk"/></button>

    </section>
</div>
<script src="${request.contextPath}/lib/video/Dvideo.js/js/Dvideo.js"></script>

<script src="${request.contextPath}/js/layer/layer.js"></script>
<script type="text/javascript">

    $(".title").css("line-height",$(".title").height() + 'px')
    $(window).resize(function(){
        $(".title").css("line-height",$(".title").height() + 'px')
    })
    function show(num) {
        layer.open({
            type: 2,
            title: '实时视频',
            shadeClose: true,
            shade: false,
            maxmin: true, //开启最大化最小化按钮
            area: ['893px', '600px'],
            content: 'http://47.112.208.177/jkd?u=' + num
        });

    }
    var locale="";
    window.onload = function(){
        var req = new XMLHttpRequest();
        req.open('GET', document.location, false);
        req.send(null);
        var headers = req.getAllResponseHeaders();
        locale=req.getResponseHeader('content-language');
        if(locale=="en-US"){
            locale="en_US";
        }else{
            locale="zh_CN";
        }
    }

    function zlzs(){
        window.location.href="${request.contextPath}/sy/zlzs/zlzsnew.html?locale="+locale;
    }
    function shouye(){
        window.location.href="${request.contextPath}/sy/index/indexnew.html?locale="+locale;
    }
    function zjzd(){
        window.location.href="${request.contextPath}/sy/zjwd/zjwdnew.html?locale="+locale;
    }
    function nybk(){
        window.location.href="${request.contextPath}/sy/nybk/nybknew.html?locale="+locale;
    }
    function nydsj(){
        window.location.href="${request.contextPath}/sy/nydsj/nydsjnew.html?locale="+locale;
    }

    function jzny(id) {
        window.location.href = "${request.contextPath}/sy/jzny/jzny.html?dkid=" + id;
    }
</script>



</body>
</html>
